﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SJCJTextTest.aspx.cs" Inherits="DQYT.HTDZ.Web.Views.SJCJTEXT.SJCJTextTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>文本数据采集</title>
    <link href="../../easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../easyui/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="../../easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <link href="../../css/kington.css" rel="stylesheet" type="text/css" />
    


    <style type="text/css">
        .easyui-combobox
        {
            margin-bottom: 0px;
        }
        
#center{ 
margin:50px auto; 
width:400px; 
} 
#loading{ 
width:397px; 
height:49px; 
background:url(bak.png) no-repeat; 
} 
#loading div{ 
width:0px; 
height:48px; 
background:url(pro.png) no-repeat; 
color:#fff; 
text-align:center; 
font-family:Tahoma; 
font-size:18px; 
line-height:48px; 
} 
#message{ 
width:200px; 
height:35px; 
font-family:Tahoma; 
font-size:12px; 
background-color:#d8e7f0; 
border:1px solid #187CBE; 
display:none; 
line-height:35px; 
text-align:center; 
margin-bottom:10px; 
margin-left:50px; 
    }
        .style1
        {
            width: 58%;
        }
        .style2
        {
            width: 58%;
            height: 75px;
        }
    </style>
    
    
<script type="text/javascript" src="jquery-1.3.2.js"></script> 
<script type="text/javascript">
    var progress_id = "loading";
    function SetProgress(progress) {
        if (progress) {
            $("#" + progress_id + " > div").css("width", String(progress) + "%"); //控制#loading div宽度 
            $("#" + progress_id + " > div").html(String(progress) + "%"); //显示百分比 
        }
    }
    var i = 0;
    function doProgress() {
        if (i > 100) {
            $("#message").html("加载完毕！").fadeIn("slow"); //加载完毕提示 
            return;
        }
        if (i <= 100) {
            setTimeout("doProgress()", 100);
            SetProgress(i);
            i++;
        }
    }
    $(document).ready(function () {
        doProgress();
    }); 
</script> 

</head>
<body>
    <form id="form1" runat="server" visible="True">
    <div style="height: 140px;">
    </div>
    <div>
        
        <table style="width: 70%; border: 1px solid black; padding: 1px; margin: 1px auto;">
            <tr style="line-height: 50px; text-align: center;">
                <td style=" font-size=20px;" colspan="2"><strong >文本数据采集</strong>
                </td>
            </tr>
            <tr>
                <td align="right" bgcolor="#ecf9fc" class="style1">
                    文件格式：
                </td>
                <td class="right_bg" align="left" width="70%">
                    <asp:DropDownList ID="ddlTextType" runat="server"  OnSelectedIndexChanged="ddlTextType_SelectedIndexChanged"
                        Width="100%" CssClass="easyui-combobox" editable="false">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" bgcolor="#ecf9fc" class="style1">
                    数据格式：
                </td>
                <td class="right_bg" align="left" width="70%">
                    <asp:DropDownList ID="ddlTextValueType" runat="server"  OnSelectedIndexChanged="ddlTextValueType_SelectedIndexChanged"
                        CssClass="easyui-combobox" Width="100%" editable="false">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" bgcolor="#ecf9fc" class="style1">
                    文 件：
                </td>
                <td class="right_bg" align="left" width="30%">
                    <asp:FileUpload ID="fulFileUpload" runat="server" Enabled="true" Width="100%" CssClass="input1" />
                    <asp:HiddenField ID="hfdUploadFile" runat="server" Visible="False" OnValueChanged="hfdUploadFile_ValueChanged" />
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="height: 43px" class="right_bg">
                    <%--<input type="button" id="btnUploadData" class="btn2" value="上传数据" onserverclick="btnUploadData_Click"
                        runat="server" onclick="return btnUploadData_onclick()" />--%>
                         <asp:Button ID="btnUploadData" runat="server" Text="上传数据" 
                        CssClass="submit" onclick="btnUploadData_Click" />   

                </td>
            </tr>
            <tr>
            <td align=center class="style2" colspan="2">
                <asp:Label ID="lab_wait" runat="server" 
                    Text="数据加载中......." Font-Size="Larger" ForeColor="#3333FF" Visible="False"></asp:Label></td>
            
            </tr>
            
        </table>
    </div>
    
    </form>
</body>
</html>
